package xyz.second.database.portal.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 班级表
 * </p>
 *
 * @author qjw
 * @since 2021-06-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("class")
public class Class implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 班级id
     */
    @TableId(value = "class_id", type = IdType.AUTO)
    private Integer classId;

    /**
     * 班级名称
     */
    @TableField("class_name")
    private String className;

    /**
     * 年级id
     */
    @TableField("grade_id")
    private Integer gradeId;

    /**
     * 专业id
     */
    @TableField("major_id")
    private Integer majorId;

    /**
     * 学院id
     */
    @TableField("college_id")
    private Integer collegeId;

    /**
     * 课程是否结业  0：未结业 1：已结业
     */
    @TableField("class_end")
    private Integer classEnd;

    /**
     * 班主任（老师）id
     */
    @TableField("teacher_id")
    private Integer teacherId;


}
